﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WarehouseManagement.BusinessLogic.BC;
using WarehouseManagement.ViewModels.Merchandise;

namespace WarehouseManagement.Presenters.Merchandise
{
    public class SelectMerchandisePresenter : BasePresenter<ISelectMerchandiseViewModel>
    {
        private MerchandiseBC _bc;

        public SelectMerchandisePresenter()
        {
            _bc = new MerchandiseBC();
        }

        protected override void WireupEventHandles()
        {

        }

        public void Search()
        {
            //var result = _bc.GetMerchandiseListWithExtraInfo().Where(e =>
            //    e.MerchandiseName.ToLower()
            //    .Contains(Model.SearchKeyword));
            //Model.MerchandiseList = result.ToList();
        }
    }
}
